package com.FaceThingThird.InnterClass3;

public class Test2 {
    public static void main(String[] args) {
//       Swimming s1= new Swimming(){
//
//           @Override
//           public void Swim() {
//               System.out.println("狗跑得飞快。。。。。");
//           }
//       };
        Get(new Swimming(){

            @Override
            public void Swim() {
                System.out.println("狗跑得飞快。。。。。");
            }
        });
    }
    public static void Get(Swimming s){
        System.out.println("比赛开始。。。。。");
        s.Swim();
    }
}
interface Swimming{
    void Swim();
}
